//
// Created by jiaxv on 25-8-13.
//

#include "interface/air.h"

#include <ld_net.h>
static field_desc sn_session_est_rqst_fields[] = {
    {ft_set, 8, "SN_TYP", NULL},
    {ft_set, 3, "VER", NULL},
    {ft_set, 2, "PID", NULL},
    {ft_pad, 0, "PAD", NULL},
    {ft_set, 12, "SAC", NULL},
    {ft_set, 4, "SERVICE TYPE", NULL},
    {ft_pad, 0, "PAD", NULL},
    {ft_end, 0, NULL, NULL},
};

struct_desc_t sn_session_est_rqst_desc = {"SN_SESSION_EST_RQST", sn_session_est_rqst_fields};

static field_desc sn_session_est_resp_fields[] = {
    {ft_set, 8, "SN_TYP", NULL},
    {ft_set, 3, "VER", NULL},
    {ft_set, 2, "PID", NULL},
    {ft_pad, 0, "PAD", NULL},
    {ft_set, 12, "SAC", NULL},
    {ft_pad, 0, "PAD", NULL},
    {ft_fl_str, 0, "IP", &(pk_fix_length_t){.len = GEN_ADDRLEN}},
    {ft_pad, 0, "PAD", NULL},
    {ft_end, 0, NULL, NULL},
};

struct_desc_t sn_session_est_resp_desc = {"SN_SESSION_EST_RESP", sn_session_est_resp_fields};
